// 品牌管理模块

import request from '@/utils/request'
// 品牌管理分页器 GET   /admin/product/baseTrademark/{page}/{limit}
export const reqGetPageList = (page,limit)=>request({url:`/admin/product/baseTrademark/${page}/${limit}`,method:'get'})

// 添加品牌 POST /admin/product/baseTrademark/save 
// 编辑品牌 PUT /admin/product/baseTrademark/update  
export const BrandSaveUpdate=(data)=>{
  if(data.id){
    return request({url:"/admin/product/baseTrademark/update",method:'put',data})
  }else{
    return request({url:'/admin/product/baseTrademark/save ',method:"post",data})
  }
}
//删除 品牌 DELETE /admin/product/baseTrademark/remove/{id} 
export const reqDeleteBrand=(id)=>request({url:`/admin/product/baseTrademark/remove/${id}`,method:'delete'})